|
|
|
|
|
|
|
Learn to use the Visual Basic Editor |
|
|
|
|
|
|
|
|
Learn to move around the IDE efficiently |
|
|
|
|
|
|
|
|
Learn some form-editing tips and tricks |
|
|
|
|
|
|
|
|
Sample Project File: Any Project |
|
|
|
|
|
|
|
|
The Visual Basic code editor is pretty well stocked with hot keys and tricks that help you when writing your code. The following sections discuss some of the features youll probably use quite often while writing code in the Visual Basic code editor. |
|
|
|
|
|
|
|
|
You can search for text anywhere in a current procedure, a current module, and in any module in an entire project. From any code window, you can select the Edit, Find menu or you can press Ctrl+F to bring up the Find dialog box, as shown in Figure 18.1. If you highlight a piece of text in your code window and then select the Find dialog box, that text will be automatically added to the Find What combo box. |
|
|
|
|
|
|
|
|
Figure 18.1
The Find dialog box. |
|
|
|
|
|
|
|
|
This dialog box allows you to enter some text in the Find What field and then click the Find Next command button to find the next location in your code that matches the string. You can leave this dialog box open and keep clicking the Find Next command button to find the subsequent occurrences of the string. You can also close the Find dialog box and then press F3 to perform the Find Next operation over and over again. |
|
|
|
|
|
|
|
|
You also have other options for finding a particular string in your source code. You can choose to search only within the current procedure, search within the current module, or search across all the modules in the entire project. In addition, you can |
|
|
|
|
|